<div class="content">
    <div class="row">
        <div class="col-md-12">
            <custom-tab tab-item-list="tabItemList"></custom-tab>
            <div class="portlet-header " style="margin-top: 10px">
                <div class="operation-btn pull-right" style="margin-bottom: 10px">
                    <form class="form-inline" role="form">
                        <div class="form-group">
                            <select name="year" width="140"
                                    class="select2-container form-control"
                                    data-placeholder="-2017-"
                                    ng-model="condition.year" select2 style="min-width: 200px;">
                                <option ng-repeat="year in yearList" value="{{year.key}}"
                                        ng-bind="year.text"></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <select name="area"
                                    class="select2-container form-control" width="140"
                                    data-placeholder="请选择区域"
                                    ng-model="condition.area" select2 style="min-width: 200px;">
                                <option ng-repeat="area in areaList" value="{{area.key}}"
                                        ng-bind="area.text"></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <select name="quality"
                                    class="select2-container form-control" width="140"
                                    data-placeholder="数据质量"
                                    ng-model="condition.quality" select2 style="min-width: 200px;">
                                <option ng-repeat="quality in qualityList" value="{{quality.key}}"
                                        ng-bind="quality.text"></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <select name="analysisIndex"
                                    class="select2-container form-control" width="140"
                                    data-placeholder="分析指标"
                                    ng-model="condition.analysisIndex" select2 style="min-width: 200px;">
                                <option ng-repeat="analysisIndex in analysisIndexList" value="{{analysisIndex.key}}"
                                        ng-bind="analysisIndex.text"></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="请输入" ng-model="condition.search">
                        </div>
                        <button type="button" class="btn blue" ng-click="search()">查询</button>
                    </form>
                </div>
            </div>

            <!--公司数据-->
            <div class="portlet-body">
                <div class="row">
                    <div class="col-md-12">
                        <div ng-repeat="company in companies track by $index">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="row">
                                        <div class="col-md-8" style="margin-top: 40px;">
                                            <div class="row">
                                                <div class="col-md-5">
                                                    <img ng-click="view(company)" class="company-logo pull-right" style="width: 148px;height: 148px;cursor: pointer;" ng-src="./assets/layouts/layout/img/companies/company.jpg">
                                                </div>
                                                <div class="col-md-7">
                                                    <div class="row" id="company">
                                                        <span class="company-name" ng-click="view(company)" style="cursor: pointer">{{company.name}}</span>
                                                        <a class="company-follow" ng-if="!company.isFollow" ng-click="follow($index,company)">+关注</a>
                                                        <a class="company-follow" ng-if="company.isFollow" ng-click="follow($index,company)">取消关注</a>
                                                    </div>
                                                    <div class="row" ng-click="view(company)">
                                                        <span class="company-information">数据区间：{{company.startDate}}~{{company.endDate}}</span>
                                                    </div>
                                                    <div class="row" ng-click="view(company)">
                                                        <span class="company-information" style="margin-right: 30px">企业法人：{{company.corporation}}</span>
                                                        <span class="company-information">联系电话：{{company.telephone}}</span>
                                                    </div>
                                                    <div class="row" ng-click="view(company)">
                                                        <span class="company-information">生产经营场所地址：{{company.address}}</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <counterfeit-index id="{{'counterfeit' + $index}}" data="companies"></counterfeit-index>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" style="margin-bottom: 20px;">
                                        <div class="col-md-5">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <test-pentacle id="{{'testPentacle' + $index}}" data="companies"></test-pentacle>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-7">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <test-bar id="{{'testBar' + $index}}" data="companies"></test-bar>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <hr style="border-color: #3c3c3c;"/>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-6 col-md-5" style="line-height: 36px;white-space: nowrap">
                        <span ng-show="!smallpage">
                            每页显示
                            <select data-ng-model="pageable.size" convert-to-number>
                                <option value="3" selected="selected">3</option>
                                <option value="6">6</option>
                                <option value="9">9</option>
                            </select>
                            条记录，
                        </span>
                        当前显示 {{pageable.fromNumber}} 到 {{pageable.toNumber}} 条，共 {{pageable.totalElements}} 条记录
                    </div>
                    <div class="col-sm-6 col-md-7">
                        <ul uib-pagination
                            total-items="pageable.totalElements"
                            ng-model="pageable.number"
                            items-per-page="pageable.size"
                            max-size="5"
                            class="pull-right table-pagination">
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>